{include file="admin/header.tpl"}

<body>
    <div class="container-fluid">
        <div class="row-fluid header">
            <div class="navbar">
                <div class="navbar-inner">
                    <div class="container">
                        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </a>
                        <a class="brand" href="#">Project name</a>
                        <div class="nav-collapse">
                            <ul class="nav">
                                <li class="active"><a href="#">Home</a></li>
                                <li><a href="/admin/new_entry">New Entry</a></li>
                                <li><a href="#">Link</a></li>
                                <li><a href="#">Link</a></li>
                                <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                                    <ul class="dropdown-menu">
                                        <li><a href="#">Action</a></li>
                                        <li><a href="#">Another action</a></li>
                                        <li><a href="#">Something else here</a></li>
                                        <li class="divider"></li>
                                        <li class="nav-header">Nav header</li>
                                        <li><a href="#">Separated link</a></li>
                                        <li><a href="#">One more separated link</a></li>
                                    </ul>
                                </li>
                            </ul>
                            <form class="navbar-search pull-left" action="">
                                <input type="text" class="search-query span2" placeholder="Search">
                            </form>
                            <ul class="nav pull-right">
                                <li><a href="#">Link</a></li>
                                <li class="divider-vertical"></li>
                                <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                                    <ul class="dropdown-menu">
                                        <li><a href="#">Action</a></li>
                                        <li><a href="#">Another action</a></li>
                                        <li><a href="#">Something else here</a></li>
                                        <li class="divider"></li>
                                        <li><a href="#">Separated link</a></li>
                                    </ul>
                                </li>
                            </ul>
                            <p class="navbar-text pull-right">Logged in as <a href="#">{$username}</a> <a href="{$base_url}login/logout">Logout</a></p>
                        </div><!-- /.nav-collapse -->
                    </div>
                </div><!-- /navbar-inner -->
            </div><!-- /navbar -->

        </div>
        <div class="row-fluid">
            <div class="span2">
                <!--Sidebar content-->
                <ul class="nav nav-list">
                    <li class="nav-header">List header</li>
                    <li class="active"><a href="#"><i class="icon-white icon-home"></i> Home</a></li>
                    <li><a href="#"><i class="icon-book"></i> Library</a></li>
                    <li><a href="#"><i class="icon-pencil"></i> Applications</a></li>
                    <li class="nav-header">Another list header</li>
                    <li><a href="#"><i class="icon-user"></i> Profile</a></li>
                    <li><a href="#"><i class="icon-cog"></i> Settings</a></li>
                    <li class="divider"></li>
                    <li><a href="#"><i class="icon-flag"></i> Help</a></li>
                </ul>
            </div>
            <div class="span10">
                {if isset($error)}<div class="alert alert-error">{$error}<a class="close" data-dismiss="alert">×</a></div>{/if}
                {if isset($message)}<div class="alert alert-success">{$message}<a class="close" data-dismiss="alert">×</a></div>{/if}
                {if isset($info)}<div class="alert alert-info">{$message}<a class="close" data-dismiss="alert">×</a></div>{/if}
                
                {if !isset($section)}                   
                    {include file="admin/content.tpl"}
                {elseif $section eq 'new_entry'}
                    {include file="admin/new_entry_form.tpl"}
                {else}
                    {include file="admin/content.tpl"}
                {/if}                    

                <!--Body content-->
            </div>
        </div>
        <div class="row-fluid header">

        </div>
    </div>

    {include file="admin/footer.tpl"}
</body>
</html>
